/**
 *
 * @description 按特定长度切个数组
 * @param {Array} array 需要分组的数组
 * @param {number} subGroupLength 切割长度
 * @returns {Array} 切割后的数组
 */
function groupProjectArray(array, subGroupLength) {
    let index = 0;
    const newArray = [];
    while (index < array.length) {
        newArray.push(array.slice(index, (index += subGroupLength)));
    }
    return newArray;
}

export default {
    groupProjectArray
}  